<!--//<%@page contentType="text/html"%>
//<%@page pageEncoding="UTF-8"%>-->
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>修改密码</title>
		<link rel="stylesheet" href="/lzproject/CSS/layui.css">
		<script src="/lzproject/Js/jquery.min.js"></script>
		<script type="text/javascript">
        function update() {
            $.ajax({
            //几个参数需要注意一下
                type: "POST",//方法类型
                dataType: "json",//预期服务器返回的数据类型
                url: "/lzproject/update/password.do" ,//url
                data: $('#form1').serialize(),
                success: function (result) {
                    alert(result.msg);

                },
                error : function() {
                    alert("异常！");
                }
            });
        }
    </script>
	</head>

	<body>
		<div class="layui-form layui-form-pane layui-tab-item layui-show">
		   <form role="form" action="/lzproject/login.do" method="post" id="form1">
			<div class="layui-form-item">
				<label for="L_pass" class="layui-form-label">新密码</label>
				<div class="layui-input-inline">
					<input type="password" id="L_pass" name="login_pass" required lay-verify="required" autocomplete="off" class="layui-input layui-form-danger" />
				</div>
				<div class="layui-form-mid layui-word-aux">6-16个字符</div>
			</div>
			<div class="layui-form-item">
				<label for="L_repass" class="layui-form-label">确认密码</label>
				<div class="layui-input-inline">
					<input type="password" id="L_repass" name="login_pass_check" required lay-verify="required" autocomplete="off" class="layui-input" />
				</div>
			</div>
			<div class="layui-form-item">
				<!-- <button class="layui-btn" key="set-mine" lay-filter="*" lay-submit>确认修改</button> -->
				<input type="button" class="layui-btn" onclick="update()" value="确认修改">
			</div>
			</form>
		</div>
	</body>
    <script type="text/javascript">
      
    </script>
</html>